package com.akcome.apollo.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.akcome.apollo.domain.DictionaryType;
import com.akcome.apollo.repository.DictionaryTypeRepository;
import com.akcome.apollo.service.DictionaryTypeService;


/**
 * 字典类型Service接口实现
 *
 * @author wn
 * @version $v: 1.0.0, $time:2017-12-26 08:49:00 Exp $
 */
@Service
public class DictionaryTypeServiceImpl implements DictionaryTypeService {

	private Logger logger = LoggerFactory.getLogger(this.getClass());

	@Autowired
	private DictionaryTypeRepository dictionaryTypeRepository;
	
	@Override
	public DictionaryType save(DictionaryType dictionaryType){
		return dictionaryTypeRepository.save(dictionaryType);
	}
	
	@Override
	public DictionaryType findOne(Long id){
		return dictionaryTypeRepository.findOne(id);
	}
}
